package com.heima.crm.pojos.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("tb_post")
public class SysPost implements Serializable {

    @TableId(value = "id",type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id; //主键id

    private String postName; //岗位名称

    private String code;

    private Long showSort; //显示排序

    private Integer status; //岗位状态 0正常 1停用

    private String createUser; //创建人

    private String updateUser; //修改人

    private Date createTime; //创建时间

    private Date updateTime; //修改时间

    private String depict; //描述
}
